package com.wb.Factory;

import com.wb.Dao.BookDao;
import com.wb.Dao.impl.BookDaoImpl;
import org.springframework.beans.factory.FactoryBean;

public class BookDaoInstanceFactoryMethodTwo implements FactoryBean<BookDao> {
    @Override
    public Class<?> getObjectType() {
        return BookDao.class;
    }

    @Override
    public BookDao getObject() throws Exception {
        System.out.println("BookDaoInstanceFactoryMethodTwo startup!");
        return new BookDaoImpl();
    }
}
